package kr.co.doriclassic.lab08;

public class BoxTest {
	public static void main(String[] args) {
		Box box1 = new Box();
		
		box1.setiWidth(100);
		box1.setiLength(100);
		box1.setiHeight(100);
		box1.print();
		System.out.println(box1);
		
		Box box2 = new Box();
		box2.setiWidth(200);
		box2.setiLength(200);
		box2.setiHeight(200);
		box2.print();
		System.out.println(box2);
		
		box1 = box2;
		System.out.println("변경된 box1의 가로:"+box1.getiWidth());
		System.out.println("변경된 box1의 세로:"+box1.getiLength());
		System.out.println("변경된 box1의 높이:"+box1.getiHeight());
		
	}
}
